import numpy as np

def getMyPosition(prcSoFar):
    nins, nt = prcSoFar.shape
    position = np.zeros(nins, dtype=int)
    for i in range(nins):
        mean_price = np.mean(prcSoFar[i, :])  # 该股票历史均值
        cur_price = prcSoFar[i, -1]           # 当前价格
        if cur_price < mean_price:
            position[i] = 100  # 买入
        elif cur_price > mean_price:
            position[i] = -100 # 卖出
        else:
            position[i] = 0    # 不操作
    return position
